It is not useful to show a license tab, if there's no license
to read. This was pointed out as a possibility in
https://bugzilla.gnome.org/show_bug.cgi?id=724411
{
GtkAboutDialogPrivate *priv = about->priv;
- if (priv->license_type == GTK_LICENSE_CUSTOM && priv->license != NULL)
+ if (priv->license_type == GTK_LICENSE_CUSTOM && priv->license != NULL && priv->license[0] != '\0')
gtk_widget_show (priv->license_page);
else
gtk_widget_hide (priv->license_page);